package utils;

public class StringUtils extends org.apache.commons.lang.StringUtils {
	public static String upperFirst(String s) {
		String first = String.valueOf(s.charAt(0));
		String upperedFirst = upperCase(first);
		return s.replaceFirst(first, upperedFirst);
	}

	public static String getFromBracket(String s, String leftSign) {
		String rightSign = leftSign;
		if (leftSign.equals("[")) {
			rightSign = "]";
		}
		return s.substring(s.indexOf(leftSign) + 1, s.lastIndexOf(rightSign));
	}
}
